nt AMKCRAFT.8 WASM-GC

This file is from 07/06/2025

Get the latest version at eaglercraft.com

Game will launch in 5...

package net.minecraft.item; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.world.World; public class ItemMace extends ItemSword { public ItemMace(ToolMaterial material) { super(material); this.setUnlocalizedName("mace"); this.setCreativeTab(CreativeTabs.tabCombat); } @Override public boolean hitEntity(ItemStack stack, EntityLivingBase target, EntityLivingBase attacker) { target.addVelocity( -Math.sin(Math.toRadians(attacker.rotationYaw)) * 0.5, 0.4, Math.cos(Math.toRadians(attacker.rotationYaw)) * 0.5 ); stack.damageItem(1, attacker); return true; } } public static final Item diamond_sword = new ItemSword(Item.ToolMaterial.EMERALD).setUnlocalizedName("swordDiamond"); public static final Item mace = new ItemMace(Item.ToolMaterial.IRON).setUnlocalizedName("mace");